<template>
  <div style="padding: 10px">
    <el-table :data="tableData" border style="width: 100%" stripe>
      <el-table-column fixed prop="courseName" label="课程名" sortable/>
      <el-table-column fixed prop="courseNumber" label="课程编号"/>
      <el-table-column prop="schoolId" label="开课院系"/>
      <el-table-column prop="coursePeriod" label="学时"/>
      <el-table-column prop="courseCredit" label="学分"/>
      <el-table-column prop="workNumber" label="任课教师"/>
<!--      <el-table-column prop="GPA" label="绩点"/>-->
    </el-table>
  </div>
</template>

<script>
import request from "@/utils/request";

export default {
  name: "CourseFinish",
  components:{
  },
  data(){
    return{
      tableData:[],
    }
  },
  created() {
    this.load()
  },
  methods:{
    load(){
      request.get("http://124.70.179.188:8082/selCourse/allCompletedList?stunum="+ localStorage.getItem("userid")).then(res=>{
        this.tableData=res.data
        console.log(JSON.stringify(res))
      })
    },
  }
}
</script>

<style scoped>

</style>